const streamFolders = [
    'D:/nginx-1.11.10/html/ts/c201',
    'D:/nginx-1.11.10/html/ts/c202',
    'D:/nginx-1.11.10/html/ts/c203',
    'D:/nginx-1.11.10/html/ts/c204',
    'D:/nginx-1.11.10/html/ts/c205',
    'D:/nginx-1.11.10/html/ts/c206'
];
// ffmpeg.exe 运行程序路径
const ffmpeg = 'D:/ffmpeg/bin/ffmpeg';
const outDir = 'D:/nginx/html/mp4/';

module.exports.generateCMD = function (concatFile, outFilePath) {
    let cmd = `${ffmpeg} -f concat -safe 0 -i ${concatFile} -acodec copy -vcodec copy -f mp4 ${outFilePath}`;
    // console.log(cmd);
    return cmd.toString();
}

// exports.ffmpeg = ffmpeg;
// exports.outDir = outDir;
module.exports.folders = function () {
    return streamFolders;
};